<!DOCTYPE html>
<html lang="cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>

</html>
<script>
    let numa = 10;

    function fn() {
        let numa = 20;
        alert("numa:" + numa);
    }

    document.write("a:" + numa);
    fn();

    for (i = 0; i < 3; i++) {
        document.write("aaa");
    }
    alert(i);

    function f1() {
        let num = 123;

        function f2() {
            let num = 0;
            console.log(num)
        }
        f2()
    }
    let num = 456;
    f1();

    let a = 1;

    function fn1() {
        let a = 2;
        let b = '22';
        fn2();

        function fn2() {
            let a = 3;
            fn3();

            function fn3() {
                let a = 4;
                console.log("a:" + a); //a的值 ?
                console.log("b:" + b); //b的值 ?
            }
        }
    }
    fn1();
    document.write("<br>陆梓峰 24510206097");
</script>